package com.dc.refactoring._3_重新组织数据._11_ReplaceTypeCodeWithClass.step1;

public class Person {
    /**
     * 当前类存在四个类型码，本次的工作就是将其提取到一个新的类中
     */
    public static int O = 0;
    public static int A = 1;
    public static int B = 2;
    public static int AB = 3;

    /**
     * 血型
     */
    private int bloodGroup;

    public Person(int bloodGroup){
        this.bloodGroup = bloodGroup;
    }

    public int getBloodGroup() {
        return bloodGroup;
    }

    public void setBloodGroup(int bloodGroup) {
        this.bloodGroup = bloodGroup;
    }
}
